import 'package:flutter/material.dart';
import 'package:photo_frame/router/router_context.dart';
import 'package:photo_frame/user/user_manager.dart';

class EntryPage extends StatefulWidget {
  const EntryPage({super.key});

  @override
  State<StatefulWidget> createState() {
    return _EntryState();
  }
}

class _EntryState extends State<EntryPage> {
  
  @override
  void initState() {
    super.initState();
    ARouter.instance.pagePushReplacement(
        UserManager.instance.isLoggedIn() ? '/main' : '/login');
  }

  @override
  Widget build(BuildContext context) {
    return Container();
  }
}
